package comgame.entities.EquipmentEnum;

import java.util.ArrayList;

public enum BootType implements EquipmentType {
    BOOT_1("普通靴子", 1, 1, 1, 0.00),
    BOOT_2("铁靴子", 2, 2, 2, 0.00),
    BOOT_3("金靴子", 3, 3, 3, 0.01),
    BOOT_4("钻石靴子", 4, 4, 4, 0.02),
    BOOTS_GHOST("幽灵靴子", 7, 8, 8, 0.05),
    BOOTS_SPACEKING("空间之主靴子", 15, 15, 15, 0.10);

    private final String displayName;
    private final int attack;
    private final int defense;
    private final int speed;
    private final double critRate;

    BootType(String displayName,int attack,  int defense, int speed, double critRate) {
        this.displayName = displayName;
        this.defense = defense;
        this.speed = speed;
        this.attack = attack;
        this.critRate = critRate;
    }
    @Override
    public String getTypeCategory() {
        return "BOOT";
    }

    @Override
    public String getName() {
        return displayName;
    }

    @Override
    public ArrayList<Integer> getBaseValue() {
        return new ArrayList<Integer>(){{
            add(attack);
            add(defense);
            add(speed);
        }};
    }
    public int getAttack() {
        return attack;
    }
    public int getSpeed() {
        return speed;
    }
    public int getDefense() {
        return defense;
    }
    public double getCritRate() {
        return critRate;
    }
}
